package main
import(
	"fmt";
	"strings"
)

func main(){
	var index int8 = int8(strings.LastIndex("go go go golang","go"))
	fmt.Println(index)

	str := strings.Replace("go go go golang","go","go语言",-1)
	fmt.Println(str)

	arr := strings.Split("xx,aa,qq,22",",")
	for i:=0;i<len(arr);i++{
		fmt.Printf(arr[i]+" ")
	}
	fmt.Printf("\n")
	fmt.Println(arr)

	fmt.Println(strings.ToLower("gsdsfsdaweASDFAFSD"))
	fmt.Println(strings.ToUpper("gsdsfsdaweASDFAFSD"))
	fmt.Println(strings.TrimSpace(" 1daweASDFAFSDsdfsdf "))
	fmt.Println(strings.Trim("!!!daweASDFAFSDsdfsdf!!!","!!!"))
	fmt.Println(strings.TrimLeft("!!!daweASDFAFSDsdfsdf!!!","!!!"))
	fmt.Println(strings.TrimRight("!!!daweASDFAFSDsdfsdf!!!","!!!"))
	fmt.Println(strings.HasPrefix("http://www.baidu.com","http"))
	fmt.Println(strings.HasSuffix("http://www.baidu.com","com"))
}